home *** CD-ROM | disk | FTP | other *** search
- Path: news2.noc.netcom.net!news
- From: Tarang Deshpande <tarang@willows.com>
- Newsgroups: comp.lang.c
- Subject: Re: Calling a function in variable
- Date: Tue, 19 Mar 1996 16:58:52 -0800
- Organization: NETCOM Network Operations
- Message-ID: <314F584C.32CF@willows.com>
- References: <4ikjlq$71@Server2.swix.ch>
- NNTP-Posting-Host: daffy.willows.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0GoldB1 (Win95; I)
-
- Aurelio Caliaro wrote:
- >
- > It is strange but I can't remember how I need to call a
- > function whose address is in a variable.
- > If the function address is in "(void*)Addr", how do I
- > call it?
- >
- > Aurelio
-
-
- The same way you would address the value of any other pointer; with
- a * in front of it.
-
- (*Addr)( param1 );
-